import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
import axios from 'axios'
import VueAxios from 'vue-axios'
axios.defaults.baseURL='/api'

axios.interceptors.request.use(config=>{
    config.headers.token=window.sessionStorage.getItem('token')
    return config
})
createApp(App).use(store).use(VueAxios,axios).use(ElementPlus).use(router).mount('#app')
